<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
	<link href="http://fonts.googleapis.com/css?family=Oleo+Script" rel="stylesheet" type="text/css">
	<link href="http://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet" type="text/css">
	<link rel="stylesheet" type="text/css" href="CSS/style.css">
	<title>RescueMe - Welcome!</title>
</head>
<body>
	<%@ page import="cs236369.hw5.InitListener" %>
	<p class="title">Welcome to Rescue Me!<br />
	the world number 1 site (together with some of the other projects...) in managing rescue teams!</p>
	<p class="error">
		<%
			String message = (String)session.getAttribute("message");
			if(message != null && message != "") { out.print(message); }
			session.removeAttribute("message");
		%>
	</p>
	<p class="subtitle">Please login or register:<br /></p>
	<div><form action="Login" method="post"><fieldset>
		<legend>Login</legend>
		<p class="text">
		<label>Username:&nbsp;</label>
		<input type="text" name="username" /><br />
		<label>Password:&nbsp;</label>
		<input type="password" name="password" /><br /><br />
		<input type="submit" value="login" />
	</p></fieldset></form></div>
	<br /> 
	<div><form action="Register" method="post"><fieldset>
		<legend>Register</legend>
		<p class="text">
		<label>Username:&nbsp;</label>
		<input type="text" name="regUsername" /><br />
		<label>Password:&nbsp;</label>
		<input type="password" name="regPassword" /><br />
		<label>First name:&nbsp;</label>
		<input type="text" name="firstName" /><br />
		<label>Last name:&nbsp;</label>
		<input type="text" name="lastName" /><br />
		<label>Email:&nbsp;</label>
		<input type="email" name="email" /><br />
		<label>Phone:&nbsp;</label>
		<input type="text" name="phone" /><br /><br />
		<label>(optional) For admin account type admin password:&nbsp;</label>
		<input type="password" name="adminPass" /><br />
		<label>[The password is: "I am an admin"]</label><br /><br />
		<input type="submit" value="register" class="regularButton" />
	</p></fieldset></form></div>
</body>
</html>